<?php $this -> load->view('admin/inc/header');?>
<div id="maincontainer">
    <?php $this -> load->view('admin/inc/menu_admin');?>
    <form method="POST" action="<?php echo base_url();?>admin/mon/insert">
        <div id="tab_mce">
            <table border='1' class="ql_bg">
                <tr class="a_cl">Nhập Tên Môn*</tr><br />
                <tr class="a_cl"><input type="text" name="ten_mon"/></tr><br />
                <tr>
                    <?php $laynganh = $this->m_giangvien->get_select_nganh();?>
                    <a>Ngành :</a>
                </tr><br />
                <tr>
                        <select name="id_menu">
                            <option value="0">Chọn Ngành</option>
                        <?php foreach($laynganh->result_array() as $rowlaynganh):?>
                            <option value="<?php echo $rowlaynganh['id'];?>"><?php echo $rowlaynganh['ten_nganh'];?></option>
                        <?php endforeach;?>
                        </select>
                </tr><br />
                <tr class="a_cl">Nhập Tín Chỉ</tr><br />
                <tr class="a_cl"><input type="text" name="tinchi" /></tr>
            </table>
            <input type="submit" name="btnsub_mon" value="Thêm Môn" />
        </div>
    </form>
</div><!--End div#maincontainer-->
<?php $this -> load->view('admin/inc/footer');?>